package cn.org.donald.sensitive.util;

import cn.org.donald.sensitive.factory.IFindSensitive;
import cn.org.donald.sensitive.model.FactoryEnum;
import cn.org.donald.sensitive.model.FindStringRegex;

import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Donald
 * @since 2023-11-16 15:15:18
 **/
public class PowerPointUtil {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add(FindStringRegex.IDENTIFY_CARD);
        list.add(FindStringRegex.MOBILE_PHONE);
        list.add("病毒库");
//        String src = "D:\\develop\\sensitive\\1.pptx";
//        String desc = "D:\\develop\\sensitive\\1-new.pptx";
        String src = "D:\\develop\\sensitive\\1.txt";
        String desc = "D:\\develop\\sensitive\\1-new.txt";
        IFindSensitive instance = FactoryEnum.getInstance(Paths.get(src));
        instance.replace(list, Paths.get(desc));
    }
}
